﻿@model Steeltoe.Samples.FortuneTellerWeb.Models.FortuneModel?
@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    <p>Learn about <a href="https://learn.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>

<!-- Steeltoe: Display random fortune. -->
@if (Model != null)
{
    <div class="alert alert-secondary">
        <h4>Random fortune</h4>
        <table class="table table-bordered table-primary">
            <thead>
            <tr>
                <th style="width: 10%" scope="col">Id</th>
                <th scope="col">Text</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>@Model.Id</td>
                <td>@Model.Text</td>
            </tr>
            </tbody>
        </table>
    </div>
}
